package com.fzh.service;

import java.util.List;

import com.fzh.pojo.entity.Address;

public interface AddressService {
	
	public List<Address> queryAllAddress();
	
	/**
	 * 鎸夌収id鏌ヨ鍦板潃淇℃伅
	 * @return
	 */
	public Address selectAddressById(Integer id);
	
	public Integer queryAddressCounts();

	/**
	 * {鍓嶅彴}鏍规嵁鐢ㄦ埛id鏌ヨ鍑烘墍鏈夌殑鍦板潃淇℃伅
	 * @param userId
	 * @return
	 */
	public List<Address> queryAllAddressByUserIdF(Integer userId);

	/**
	 * {鍓嶅彴}鏌ヨ鍑哄搴旂殑鍦板潃淇℃伅鏍规嵁鐢ㄦ埛鐨刬d鍜屽湴鍧�鐨勫簭鍙�
	 * @param userId
	 * @param number
	 * @return
	 */
	public Address queryAllAddressByUserIdAndNumberF(Integer userId, Integer number);
	
	/**
	 * 根据id删除地址信息
	 * @param id
	 * @return
	 */
	public Integer deleteById(Integer id);
	
	public Boolean addAddressById(Address address);
	
	public Boolean updateAddressById(Address address);
}
